#pragma once

namespace mmath
{
	class BoundingBox
	{
	public:
		BoundingBox();
		
		void initWithSphere(XMVECTOR center, float radius);
		void growBySphere(XMVECTOR center, float radius);
		void scale(float s);

		static BoundingBox maximum(const BoundingBox & b1, const BoundingBox & b2);
		bool isNonZero();

		XMFLOAT3 Min;
		XMFLOAT3 Max;
	};
}